package com.starry.module.system.core.sms.service.impl;

import com.starry.module.system.core.sms.service.SmsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * 短信服务实现
 *
 * @author xiaoke
 */
@Slf4j
@Service("smsService")
public class SmsServiceImpl implements SmsService {


    @Override
    public String send(String phone) {
        String code = getCode(6);
        log.info("阿里云短信发送成功！手机号：【{}】 -- 验证码：【{}】", phone, code);
        return code;
    }
}
